package com.hospital.hospitalrelay.web;


import com.hospital.hospitalrelay.entity.Diagnosis;
import com.hospital.hospitalrelay.service.IDiagnosisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 诊断表 前端控制器
 * </p>
 *
 * @author 闫腾腾
 * @since 2020-10-21
 */
@RestController
@RequestMapping("/diagnosis")
public class DiagnosisController {

    @Autowired
    private IDiagnosisService iDiagnosisService;

    //诊断列表
    @RequestMapping("diagnosislist")
    public List<Diagnosis> diagnosislist(){
        return iDiagnosisService.list();
    }
}
